package com.roam.service.impl;

import com.roam.VO.DisplaySceneVO;
import com.roam.VO.PopularSceneVO;
import com.roam.mapper.HomePageMapper;
import com.roam.service.HomePageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class HomePageServiceImpl implements HomePageService {


    @Autowired
    private HomePageMapper homePageMapper;

    @Override
    public ArrayList<DisplaySceneVO> displayScenes(int n) {
        return homePageMapper.getDisplayScenes(n);
    }

    @Override
    public ArrayList<PopularSceneVO> popularScenes(int n) {
        return homePageMapper.getPopularScenes(n);
    }
}
